import request from '@/utils/request.js'

// 查询打印机列表列表
export function listPrinter(query) {
  return request({
    url: '/order/printer/list',
    method: 'get',
    params: query
  })
}

// 查询打印机列表详细
export function getPrinter(printerId) {
  return request({
    url: '/order/printer/' + printerId,
    method: 'get'
  })
}

// 新增打印机列表
export function addPrinter(data) {
  return request({
    url: '/order/printer',
    method: 'post',
    data: data
  })
}

// 修改打印机列表
export function updatePrinter(data) {
  return request({
    url: '/order/printer',
    method: 'put',
    data: data
  })
}

// 删除打印机列表
export function delPrinter(printerId) {
  return request({
    url: '/order/printer/' + printerId,
    method: 'delete'
  })
}
